﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project
{
    public partial class DShowMyProjects : Form
    {
        public DShowMyProjects()
        {
            InitializeComponent();
        }

        private void btn_back_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btn_projects_Click(object sender, EventArgs e)
        {
            dgv_data.DataSource = DProjects.showMyProjects(Login.id);
        }

        private void btn_logs_Click(object sender, EventArgs e)
        {
            dgv_data.DataSource = DProjects.showMyLog(Login.id);
        }

        private void btn_chck_Click(object sender, EventArgs e)
        {
            DProjects.check(Convert.ToInt32(txt_lid.Text));
        }

        private void btn_unchck_Click(object sender, EventArgs e)
        {
            DProjects.unCheck(Convert.ToInt32(txt_lid.Text));
        }
    }
}
